package LinkedQueues;

import java.util.LinkedList;

public class Text {
    public static void main(String[] args) {
        LinkedQueue<Integer> linkedQueue = new LinkedQueue<>();
        linkedQueue.offer(1);
        linkedQueue.offer(2);
        linkedQueue.offer(3);
        linkedQueue.offer(4);
        linkedQueue.offer(5);

        for (Integer integer : linkedQueue) {
            System.out.println(integer);
        }
        System.out.println("======================");
/*        linkedQueue.poll();
        linkedQueue.poll();
        linkedQueue.poll();
        linkedQueue.poll();
        linkedQueue.poll();
        linkedQueue.poll();
        linkedQueue.poll();
        for (Integer integer : linkedQueue) {
            System.out.println(integer);
        }*/
        System.out.println(linkedQueue.peek());
        System.out.println(linkedQueue.peek());
        System.out.println(linkedQueue.peek());
    }
}
